package main.java.service.impl;

import main.java.dao.ResultDao;
import main.java.dao.impl.ResultDaoImpl;
import main.java.domain.Result;
import main.java.service.ResultService;

public class ResultServiceImpl implements ResultService {
    private ResultDao dao = new ResultDaoImpl();
    @Override
    public void add(int stuid, int taskid, String path) {
        dao.add(stuid, taskid, path);
    }

    @Override
    public void update(int stuid, int taskid, int res, String eval) {
        dao.update(stuid, taskid, res, eval);
    }

    @Override
    public Result find(int stuid, int taskid) {
        return dao.find(stuid, taskid);
    }
}
